<%--
  Created by IntelliJ IDEA.
  User: likaiyang
  Date: 2023/11/22
  Time: 20:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>飞机类型</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/alluser_css.css">
</head>
<body>
<div class="header">
    <ul>
        <div class="menu">
            <li class="首页"><a href="${pageContext.request.contextPath}/user/toIndex_new">首页</a></li>
            <li class="飞机类型管理"><a href="${pageContext.request.contextPath}/planetype/findAllPlanetype_new">飞机类型</a></li>
            <li class="飞机详情管理"><a href="${pageContext.request.contextPath}/planeinformation/findAllPlaneinformation_new">飞机详情</a></li>
            <li class="用户设置"><p>您好：${USER_SESSION.username}</p>
                <ul class="用户设置的下拉菜单">
                    <li><a href="${pageContext.request.contextPath}/user/tologin">登录</a></li>
                    <li><a href="${pageContext.request.contextPath}/user/toregister_new">注册</a></li>
                    <li><a href="${pageContext.request.contextPath}/user/logout">退出登录</a></li>
                </ul>
            </li>
        </div>
    </ul>
</div>
<div class="form">
    <form action="${pageContext.request.contextPath}/planetype/findPlanetypeByStr_new" method="post">
        <input type="text" id="searchStr" name="searchStr" required>
        <input type="submit" value="查询">
    </form>
</div>
<div class="add">
<%--    <a href="${pageContext.request.contextPath}/planetype/toinsertplanetype">添加飞机类型</a><br>--%>
</div>
<table>
    <tr>
<%--        <td>飞机类型ID</td>--%>
        <td>飞机类型名称</td>
        <td>飞机类型简介</td>
    </tr>
    <c:forEach var="planetype" items="${allplanetype}">
        <tr>
<%--            <td>${planetype.id}</td>--%>
            <td>${planetype.typename}</td>
            <td class="简介">${planetype.typetext}</td>
<%--            <td><a href="${pageContext.request.contextPath}/planetype/toupdatePlanetypeById/${planetype.id}">修改</a></td>--%>
<%--            <td><a href="${pageContext.request.contextPath}/planetype/deletePlanetypeById/${planetype.id}">删除</a></td>--%>
            <td><a href="${pageContext.request.contextPath}/planeinformation/findPlaneinformationByTypeid_new/${planetype.id}">查看具体飞机</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
